package com.dobest.studentmanagement.dao;

import com.dobest.studentmanagement.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Package: com.dobest.studentmanagement.dao
 * @author: Jounghu
 * @date: 2018/8/19 16:36
 * @version: V1.0
 */
@Repository
public interface StuRepository extends JpaRepository<Student, Integer> {


    /**
     * 根据学生查找用户
     *
     * @param stuNum
     * @return
     */
    Student findByStuNum(String stuNum);
}
